package com.jk.interfaces;

import com.jk.dto.CountRenshu;
import com.jk.dto.TemCandidate;
import com.jk.pojo.PagedResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 添加描述
 * @LastChangeDate 2025/2/17 14:04
 * @Version v1.0
 */
public interface TemCandidateServiceApi {

    @PostMapping("/cand/findTemCandidateList")
    public PagedResponse<TemCandidate> findTemCandidateList(@RequestBody TemCandidate temCandidate, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);

    @PostMapping("/cand/addTemCandidate")
    public void addTemCandidate(@RequestBody TemCandidate temCandidate);



    @GetMapping("/cand/getTemCandidateById")
    public TemCandidate getTemCandidateById(@RequestParam(value = "id") Integer id);

    @PostMapping("/cand/updateTemCandidate")
    public void updateTemCandidate(@RequestBody TemCandidate temCandidate);

    //修改为面试中
    @PostMapping("/cand/updateStateById")
    public void updateStateById(@RequestParam Integer id,@RequestParam (value = "process")String process);

    //查询echarts信息
    @PostMapping("/cand/findEchartsProcessList")
    public List<TemCandidate> findEchartsProcessList(@RequestBody TemCandidate temCandidate);

    //统计信息
    @GetMapping("/cand/findCount")
    public List<CountRenshu> findCount();

    //统计柱状图信息
    @GetMapping("/cand/findEchartsList")
    public List<TemCandidate> findEchartsList();

    // 简历数据
    @GetMapping("/cand/findShuJvList")
    public Object findShuJvList();

}
